home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 26 / Cream of the Crop 26.iso / os2 / plnk081.zip / pilot-link.0.8.1 / Java / Pdapilot / Resource.java < prev    next >
Text File  |  1997-08-05  |  510b  |  29 lines

  1.  
  2. package Pdapilot;
  3.  
  4. import java.io.*;
  5.  
  6. /** A representation of a database resource.
  7.  */
  8.  
  9. public class Resource extends Block {
  10.         public int id, index;
  11.         public Char4 type;
  12.         
  13.         Resource() {
  14.             super();
  15.         }
  16.         
  17.         Resource(byte[] contents, Char4 type, int id, int index) {
  18.             this.id = id;
  19.             this.index = index;
  20.             this.type = type;
  21.             this.unpack(contents);
  22.         }
  23.  
  24.         public String toString() {
  25.             return "<generic resource, type "+type+", id "+id+", index "+index+
  26.                 ", raw '"+Util.prettyPrint(raw)+"'>";
  27.         }
  28. }
  29.